Hi All,
I am trying to take the back up of DOORS Database.
In the Admin manual located here for linux machine:
http://publib.boulder.ibm.com/infocenter/rsdp/v1r0m0/topic/com.ibm.help.download.doors.doc/pdf92/Backing_up_Rational_DOORS.pdf
I found the script lvm.txt to backup DOORS Database.
I have few questions on this.
1). What is difference between archival and snapshot backup?
- I have already implemented nightly archival using a dxl script.
2). I didn’t get the meaning of these variables.
a). # Volume group that contains the logical volume
VOLUME_GROUP=VolGrp01
b). # Logical volume to be snapped
BACKUP_VOLUME=LogVol01
c). # Name of backup volume
NAME=backup
d). # Where to mount the snapshot, it is this we will then back up,
# be aware that any backup will have this path so a restore will
# need to be relocated to the appropriate location
BACKUP_MOUNT=/backup/mount/point
Can you please suggest about this?
Thanks and Regards,
Aj
lvm.txt Script is:
lvm.txt
#!/bin/sh
-
Script for creating Linux LVM snapshots of DOORS for
-
backup - this script can be adapted for HP-UX.
-
Location of DOORS start/stop script
DOORS_SCRIPT=/opt/DOORS_9.1/startStopStatus.sh
-
Volume group that contains the logical volume
VOLUME_GROUP=VolGrp01 #has to be taken care.
-
Logical volume to be snapped
BACKUP_VOLUME=LogVol01 #has to be taken care.
-
Amount of space to allocate to the snapshot to buffer the
-
changes on the live volume. This is commonly 10-20% of the
-
size of the original volume depending on useage. The following
-
would assign 10 gigabytes.
SIZE=10G
-
Name of backup volume
NAME=backup #has to be taken care.
-
Where to mount the snapshot, it is this we will then back up,
-
be aware that any backup will have this path so a restore will
-
need to be relocated to the appropriate location
BACKUP_MOUNT=/backup/mount/point
SNAP_SCRIPT=`basename $0`
case $SNAP_SCRIPT
in
backup_snapshot) if
then
echo "Useage: backup_snapshot remove"
exit 1
fi
MODE=$1
;;
backup_snapshot_create) MODE=create
;;
backup_snapshot_remove) MODE=remove
;;
esac
case $MODE
in
create) if lvdisplay /dev/$VOLUME_GROUP/$NAME > /dev/null 2>&1
then
echo "Snapshot already exists for volume: $BACKUP_VOLUME"
$SNAP_SCRIPT remove
fi
$DOORS_SCRIPT stop
echo "Setting up snapshot of $BACKUP_VOLUME"
lvcreate --size $SIZE --snapshot --name $NAME /dev/$VOLUME_GROUP/$BACKUP_VOLUME
mount -o ro /dev/$VOLUME_GROUP/$NAME $BACKUP_MOUNT
$DOORS_SCRIPT start
;;
remove) if lvdisplay /dev/$VOLUME_GROUP/$NAME > /dev/null 2>&1
then
echo "Removing snapshot of $BACKUP_VOLUME"
umount $BACKUP_MOUNT && lvremove /dev/$VOLUME_GROUP/$NAME || echo "Couldn't unmount $NAME"
else
echo "No snapshot of $BACKUP_VOLUME found"
fi
;;
*) echo "Useage: backup_snapshot remove"
exit 1
;;
esac
exit 0
DOORS_AJ - Tue Sep 21 13:40:05 EDT 2010 |